home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / IDE / SUBARTIC / SUB_ARCT / ANIM / LINEAR_P.JAV < prev    next >
Encoding:
Text File  |  1996-10-04  |  1.4 KB  |  50 lines

  1. package sub_arctic.anim;
  2.  
  3. /**
  4.  * This is the simplest pacing function. It doesn't change the
  5.  * input time value at all, resulting in a linear time mapping.
  6.  *
  7.  * @author Ian Smith
  8.  */
  9. public class linear_pacer implements pacer {
  10.  
  11.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  12.  
  13.   /* 
  14.    * Do the transformation. 
  15.    * @param double f original point in time
  16.    * @return double the resulting point in time (which is this case is the 
  17.    *                same as the input time)
  18.    */
  19.   public double pace(double f) {
  20.     return f;
  21.   }
  22.  
  23.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  24.  
  25.   /**
  26.    * Construct a linear_pacer.
  27.    */
  28.   public linear_pacer() {
  29.     /* nothing to do */
  30.   }
  31.  
  32.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  33. }
  34. /*=========================== COPYRIGHT NOTICE ===========================
  35.  
  36. This file is part of the subArctic user interface toolkit.
  37.  
  38. Copyright (c) 1996 Scott Hudson and Ian Smith
  39. All rights reserved.
  40.  
  41. The subArctic system is freely available for most uses under the terms
  42. and conditions described in 
  43.   http://www.cc.gatech.edu/gvu/ui/sub_arctic/sub_arctic/doc/usage.html 
  44. and appearing in full in the lib/interactor.java source file.
  45.  
  46. The current release and additional information about this software can be 
  47. found starting at: http://www.cc.gatech.edu/gvu/ui/sub_arctic/
  48.  
  49. ========================================================================*/
  50.